package com.villaday.idf.custom.pop;

import android.content.Context;
import android.graphics.Color;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import com.villaday.idf.R;

import razerdp.basepopup.BasePopupWindow;

public class TipsPop extends BasePopupWindow {

    private Context mContext;

    public TipsPop(Context context, String title, String content) {
        super(context);
        mContext = context;
        setBackground(0);
        setOutSideDismiss(true);
        setKeepSize(true);
        setPopupFadeEnable(false);
        setBackgroundColor(Color.parseColor("#B3000000"));
        setBlurBackgroundEnable(true);
        findViewById(R.id.iv_data_close).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });

        TextView tv_data_title = findViewById(R.id.tv_data_title);
        TextView tv_content = findViewById(R.id.tv_content);
        tv_content.setText(content);
        tv_data_title.setText(title);
    }


    @Override
    public View onCreateContentView() {
        return createPopupById(R.layout.tips_data);
    }
}
